import { createRouter, createWebHashHistory } from "vue-router"


// 定义routes

const routes = [
    {
        path: "/",
        redirect: "/welcome",
        component: () => import(/*webpackChunkName:"home" */"@/layout/index.vue"),
        name: 'home',
        children: []
    },
    {
        path: "/login",
        component: () => import("@/pages/login/index.vue"),
        name: "login"
    },
    // {
    //     path: "/:params(.*)*",
    //     name: "notfount",
    //     component: () => import("../pages/page404/index.vue")
    // }
]

export default createRouter({
    //路由模式
    history: createWebHashHistory(),
    routes
})